<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/pages/common/header.jsp"%>
</head>
<body>
	<div class="contentBody contentborder">
		<div class="tab-pane" id="tabPane">
			<div id="message"><%=message %></div>
			<div class="tab-page">
				 <h1 class="tab">用户登录日志</h1>
 				 <div class="contentborder">
                	 <jdf:form bean="request" scope="request">
						<form action="<%=dynamicDomain%>/loginLog/page" method="post" name="User" id="User">
							 <table class="inputTable">
			                 	<tr>
									<td nowrap class="label cancelBorderLeft">
										<label for="search_LIKES_loginName">登录名：</label>
									</td>
									<td class="content">
										<input type="text" name="search_LIKES_loginName" />
									</td>
									<td nowrap class="label">
                                        <label for="search_GED_beginDate">登录时间：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" name="search_GED_beginDate" id="search_GED_beginDate" style="width: 120px;" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true,maxDate:'#F{$dp.$D(\'search_LED_beginDate\')}'})">－<input class="text" type="text" id="search_LED_beginDate" name="search_LED_beginDate" style="width: 100px;" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true,minDate:'#F{$dp.$D(\'search_GED_beginDate\')}'})">
                                    </td>
			                 	</tr>
			                 	<tr>
                                    <td nowrap class="label cancelBorderLeft">
                                        <label for="search_EQI_result">认证成功：</label>
                                    </td>
                                    <td class="content">
                                         <select name="search_EQI_result">
                                            <option value=""></option>
                                            <jdf:select dictionaryId="109"/>
                                        </select>
                                    </td>
                                    <td nowrap class="label">
                                        <label for="search_LIKES_message">备注：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" name="search_LIKES_message">
                                    </td>
                                </tr>
			                 	<tr>
                                	<td class="bottomLabel" nowrap colspan="4">
                                		<div class="right">
											<button type="reset" class="button_common">重置</button>
											<button type="submit" class="button_common">查询</button>
                                		</div>
									</td>
			                 </table>
			            </form>
			        </jdf:form>
				</div>
				<div class="contentborder listArea">
					<div class="toolBar">
					</div>
					<div id="tableDiv">
						<jdf:table items="items"  retrieveRowsCallback="limit" var="currentRowObject" filterRowsCallback="limit" sortRowsCallback="limit" action="page">
							<jdf:export view="csv" fileName="user.csv" tooltip="导出CSV" imageName="csv" />
							<jdf:export view="xls" fileName="user.xls" tooltip="导出EXCEL" imageName="xls" />
							<jdf:row>
								<jdf:column property="loginName" title="登录名" style="width:10%" />
								<jdf:column property="userId" title="用户名称" style="width:15%">
                                    <jdf:columnCollectionValue items="users"  nameProperty="userName" value="${currentRowObject.userId}"/>
                                </jdf:column>
								<jdf:column property="beginDate" title="登录时间" style="width:20%" cell="date" format="yyyy-MM-dd HH:mm:ss"/>
								<jdf:column property="ip" title="登录IP" style="width:10%" />
								<jdf:column property="result" title="认证成功" style="width:5%">
                                    <jdf:columnValue dictionaryId="109" value="${currentRowObject.result}"/>
                                </jdf:column>
                                <jdf:column property="onlineTime" title="在线时间(毫秒)" style="width:10%" />
                                <jdf:column property="message" title="备注" style="width:20%" />
							</jdf:row>
						</jdf:table>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
	   function unlock(loginName){
		   $(".unlock").attr("disabled",true);
		   $.ajax({
               url:"<%=dynamicDomain%>/user/unlock/" + loginName + "?timstamp=" + (new Date()).valueOf(),
               type:'post',
               dataType:'json',
               success:function(msg){
                   if(msg.result) {
                	   showMessage("操作成功",60000);
                   }
                   $(".unlock").attr("disabled",false);
               }
		   });
	   }
	</script>
</body>
</html>